#ifndef WXSTOOLBARITEM_H
#define WXSTOOLBARITEM_H

#include "../wxstool.h"


class wxsToolBarItem : public wxsTool {
  public:

    wxsToolBarItem( wxsItemResData* Data, bool IsSeparator );

  private:

    virtual void OnBuildCreatingCode();
    virtual void OnEnumToolProperties( long Flags );
    virtual bool OnIsPointer() { return true; }
    virtual bool OnCanAddToResource( M_Code_unused wxsItemResData* Data, M_Code_unused bool ShowMessage ) { return false; }
    virtual bool OnXmlWrite( TiXmlElement* Element, bool IsXRC, bool IsExtra );
    virtual bool OnXmlRead( TiXmlElement* Element, bool IsXRC, bool IsExtra );
    virtual bool OnCanAddToParent( wxsParent* Parent, bool ShowMessage );
    virtual void OnBuildDeclarationsCode();
    virtual wxString OnGetTreeLabel( int& Image );

    enum Type {
      Separator,
      Normal,
      Radio,
      Check
    };

    Type          m_Type;
    wxString      m_Variable;
    wxString      m_Label;
    wxsBitmapData m_Bitmap;
    wxsBitmapData m_Bitmap2;
    wxString      m_ToolTip;
    wxString      m_HelpText;

    friend class wxsToolBarEditor;
};

#endif
